package com.shucoin.www.tycoin.ui.login;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.TextView;

import com.shucoin.www.tycoin.BaseActivity;
import com.shucoin.www.tycoin.R;
import com.shucoin.www.tycoin.ui.passwd.ForgetPwAt;
import com.shucoin.www.tycoin.ui.register.RegisterAt;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * Created by happy on 2017/9/1.
 */

public class LoginAt extends BaseActivity implements View.OnClickListener {
    @BindView(R.id.register)
    TextView register;
    @BindView(R.id.forget_pw)
    TextView forgetPw;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.layout_at_login);
        ButterKnife.bind(this);
        initView();
    }
    private void initView(){
        register.setOnClickListener(this);
        forgetPw.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.register:
                startActivity(new Intent(this, RegisterAt.class));
                break;
            case R.id.forget_pw:
                startActivity(new Intent(this, ForgetPwAt.class));
                break;
        }
    }
}
